const App = getApp()

Page(
    {
        data:{
            indicatorDots: !0,
            autoplay: false,
            current: 0,
            interval: 3000,
            duration: 1000,
            circular: !0,
            goods:[]
        },
        onLoad(option){
           var pid=option.pid
           var timestamp=option.timestamp
           this.getShowDetail(pid,timestamp)
        },
        getShowDetail:function(pid,timestamp){
            var that=this
                App.HttpService.showDetail({
						pid:pid,
                        timestamp:timestamp
			}).then(data => {
                console.log(data)
            if (data.meta.code == 0) {
                that.setData({
                    goods:data.result
                })
            }
        })
        },
        swiperchange: function(e){  
            this.setData({  
                current: e.detail.current  
            })  
        }  
    }
)